import request from '@/utils/request'
import Qs from 'qs'

export function pageApproval(query) {
  return request({
    method: 'get',
    params: {
      _gp: 'admin.examineAndApprove',
      _mt: 'page',
      ...query
    }
  })
}

export function updateApproval(id, type, status, notPassCause) {
  return request({
    method: 'post',
    data: Qs.stringify({
      _gp: 'admin.examineAndApprove',
      _mt: 'update',
      id: id,
      type: type,
      status: status,
      notPassCause: notPassCause
    })
  })
}
